package com.bing.services;

import com.bing.bean.sys.SysUser;
import org.springframework.cache.annotation.Cacheable;

/**
 * Created by Administrator on 2015/6/13.
 */

public interface SysUserService {

    @Cacheable(value = "sysUser", key = "#name", unless = "#root == null")
    SysUser findByName(String name);

    int createSysUser(SysUser user);

    int updateSysUser(SysUser user);

}
